Skip to content

Fix RCTImageLoader to call completion handler when networking is unavailable#56255

Closed
javache wants to merge 1 commit intofacebook:mainfrom
javache:export-D98122553
Closed

Fix RCTImageLoader to call completion handler when networking is unavailable#56255
javache wants to merge 1 commit intofacebook:mainfrom
javache:export-D98122553

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Mar 27, 2026

Summary:
RCTImageLoader._loadURLRequest: returned NULL without calling the completion handler when the RCTNetworking module was unavailable. This left dispatch_group_wait in RCTSyncImageManager blocking for the full 20-second timeout per image.

Additionally, the checks were guarded by RCT_DEBUG, meaning they only ran in debug builds. Remove the RCT_DEBUG guard so the error path runs in all builds.

Changelog: [Internal]

Differential Revision: D98122553

…ailable

Summary:
`RCTImageLoader._loadURLRequest:` returned NULL without calling the completion handler when the `RCTNetworking` module was unavailable. This left `dispatch_group_wait` in `RCTSyncImageManager` blocking for the full 20-second timeout per image.

Additionally, the checks were guarded by `RCT_DEBUG`, meaning they only ran in debug builds. Remove the `RCT_DEBUG` guard so the error path runs in all builds.

Changelog: [Internal]

Differential Revision: D98122553
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 27, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 27, 2026

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D98122553.

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 30, 2026

This pull request has been merged in 7f7cc0a.

@facebook-github-tools facebook-github-tools bot added the Merged This PR has been merged. label Mar 30, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @javache in 7f7cc0a

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants